﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using MYZSZ.Service;

namespace ServiceTest
{
    [TestClass]
    public class UnitTestAdminLog
    {
        [TestMethod]
        public void TestAddNew()
        {
            string tMessage = "第一次测试";
           long id= new AdminLogService().AddNew(5, tMessage);
            var log = new AdminLogService().GetById(id);
            Assert.AreEqual(log.Message, tMessage);
         }
    }
}
